Skip to content

Conversation

@joaodordio
Copy link
Member

@joaodordio joaodordio commented Nov 5, 2025

🔹 Jira Ticket(s)

✏️ Description

On InAppHelper getInAppMessagesFromServer func we were calling the apiClient.getInAppMessages(NSNumber(value: number)) directly.

This meant that any JWT 401 errors were not being handled with refresh retries, like they are for example when routed through RequestProcessorUtil.

That's the main change, everything else is just boiler plate changes to support injecting the AuthManager that's required by the RequestProcessorUtil

@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 61.11111% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.38%. Comparing base (6e2fdec) to head (7c07b7a).
⚠️ Report is 898 commits behind head on master.

Files with missing lines Patch % Lines
swift-sdk/Internal/in-app/InAppInternal.swift 0.00% 5 Missing ⚠️
...t-sdk/Internal/Utilities/DependencyContainer.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #968       +/-   ##
===========================================
- Coverage   85.19%   69.38%   -15.82%     
===========================================
  Files          91      109       +18     
  Lines        6301     8916     +2615     
===========================================
+ Hits         5368     6186      +818     
- Misses        933     2730     +1797     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joaodordio joaodordio force-pushed the fix/SDK-124-JWT-mechanism-not-engaged-via-InAppManager branch from 1d1cda9 to 427d15a Compare November 11, 2025 00:36
@joaodordio joaodordio force-pushed the fix/SDK-124-JWT-mechanism-not-engaged-via-InAppManager branch from 941ba65 to 7c07b7a Compare November 11, 2025 00:54
@joaodordio joaodordio marked this pull request as ready for review November 11, 2025 00:54
@joaodordio joaodordio self-assigned this Nov 11, 2025
@sumeruchat
Copy link
Contributor

LGTM! and great work! Clean solution and m glad we added some tests too :)

@joaodordio joaodordio merged commit 968b3f2 into master Nov 11, 2025
11 of 13 checks passed
@joaodordio joaodordio deleted the fix/SDK-124-JWT-mechanism-not-engaged-via-InAppManager branch November 11, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants